/**
 * 
 */
package org.newdawn.yapgame;

/**
 * @author Marko Walther
 *
 */
public enum RenderingType 
{
	JAVA2D( 0, "JAVA2D" ),
	LWJGL( 1, "LWJGL" );
	
	private int value = 0;
	private String name = null;
	
	RenderingType( int value, String name )
	{
		this.value = value;
		this.name = name;
	}

	public String getName()
	{
		return name;
	}
	
	public int getValue()
	{
		return value;
	}
	
	public static RenderingType valueOf( int value )
	{
		switch( value )
		{
		case 0: return JAVA2D; 
		default: return LWJGL;
		}
	}
	
}
